cmake_minimum_required(VERSION 3.1)
project(hw2)

set(CMAKE_C_STANDARD 99)

add_library(Bitmap
        typedef.h
        bitmap.h
        bitmap.c)

add_library(Convert
        typedef.h
        convert.c
        convert.h)

add_library(Threshold
        typedef.h
        threshold.c
        typedef.h)

target_link_libraries(Threshold Convert Bitmap)

add_executable(hw2
        main.c
        )
target_link_libraries(hw2 Threshold Convert Bitmap)